package com.guowangwei.experiment_2;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener;
import org.springframework.context.ConfigurableApplicationContext;
@Slf4j
public class MyApplicationRunnerListener implements SpringApplicationRunListener {
    private SpringApplication application ;
    private String [] args ;
    MyApplicationRunnerListener( SpringApplication application , String [] args ) {
        this.application = application ;
        this.args = args ;
    }
    @Override
    public void running( ConfigurableApplicationContext context ) {
        log.info( "ApplicationReadyEvent：执行running方法" ) ;
    }
}
